package com.example.demo.jdk8;

import java.lang.reflect.Array;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static java.util.stream.Collectors.toList;

/**
 * @program: demo
 * @description: streamapi的使用
 * @author: yby
 * @create: 2020-06-23 09:01
 **/
public class StreamApi {

    public static void main(String[] args) {
        /*Optional<Integer> max = Arrays.asList(1, 2, 3, 4, 5).stream().max((a, b) -> a - b);
        Integer integer = max.get();
        System.out.println("integer="+integer);*/
        System.out.println("fff");
    }
    }
